import accountService  from './services/account'
import routes from './routes/index'

App({
  globalData:{
    isOpenToast:false//是否有司机认证toast弹窗
  },
  onLaunch: function () {
    wx.showToast({
      icon:'loading',
      title:'loading',
      duration:10000
    });
    if (accountService.getIsLogin()) accountService.setLoginStatus()
  },
  // 弹出层的显示与隐藏
  maskToggle(obj){
    obj.setData({
      ['hide']:!obj.data.hide
    })
  },
})